<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <base href="<?php echo $theme; ?>">

    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <link rel="stylesheet" type="text/css" href="css/styles.css" />

    <script type="text/javascript" src="javascript/jquery/jquery.js"></script>
    <script type="text/javascript" src="javascript/main/main.js"></script>
    <?php foreach($scripts as $script): ?>
        <script type="text/javascript" src="<?php echo $script; ?>"></script>
    <?php endforeach; ?>

    <title><?php echo $title; ?></title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
    <div id="wrapper">
        <div id="error">
            <?php if(Sys::app()->config->mode=='test') echo Sys::app()->error; ?>
        </div>
        <?php echo $this->content; ?>
    </div>
</body>
</html>